import React, { Component } from 'react';
import {Popup} from 'antd-mobile'
import style from './footerAlertMaskList.scss'

class FooterAlertMaskList extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }

	onClickCallBack(times,timesName){
		this.props.onChoose&&this.props.onChoose(times,timesName)
	}

    render() {
		let item = this.props.item;
        return (
            <div className={style.footerAlertBoxList}>
	            <li onClick={()=>{this.onClickCallBack(item.times,item.timesName)}}>
		            {item.timesName}
		            {
						item.times == this.props.timesIndex?<img className={style.choice} src="./images/choice.png"/>:null
	                }
				</li>

            </div>
        )
    }
}

export default FooterAlertMaskList